export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn:true,
  // menu: false,
  menuWidth: 80,
  labelWidth: 120,
  "column": [
    {
      "type": "input",
      "label": "工单号",
      "prop": "docNo",
      "span": 12,
      search: true
    },
    {
      "type": "input",
      "label": "SN",
      "prop": "sn",
      "span": 12,
      search: true
    },
	  {
      "type": "input",
      "label": "描述",
      "prop": "profile",
      "span": 12,
      hide: true
    },
	  {
      "type": "input",
      "label": "仪器",
      "prop": "instrument",
      "span": 12,
      hide: true
    },
	  {
      "type": "input",
      "label": "设备通道",
      "prop": "channel",
      "span": 12,
      hide: true
    },
	  {
      "type": "input",
      "label": "插损_1310",
      "prop": "il1310Det1",
      "span": 12,
      width: 80,
    },
	  {
      "type": "input",
      "label": "插损_1550",
      "prop": "il1550Det1",
      "span": 12,
      width: 80,
    },
	  {
      "type": "input",
      "label": "回损_1310",
      "prop": "rla1310Det1",
      "span": 12,
      width: 80,
    },
	  {
      "type": "input",
      "label": "回损_1550",
      "prop": "rla1550Det1",
      "span": 12,
      width: 80,
    },

	  {
      "type": "input",
      "label": "端",
      "prop": "side",
      "span": 12,
      width: 60,
    },
	  {
      "type": "input",
      "label": "分支编号",
      "prop": "nhanh",
      "span": 12,
      width: 80,
    },
	  {
      "type": "input",
      "label": "连接器类别",
      "prop": "loai",
      "span": 12,
      width: 90,
    },
	  {
      "type": "input",
      "label": "连接头编号",
      "prop": "stt",
      "span": 12,
      width: 100,
    },
    {
      "type": "input",
      "label": "设备编号",
      "prop": "deviceSn",
      "span": 12,
      search: true
    },
	  {
      "type": "input",
      "label": "Status",
      "prop": "result",
      "span": 12,
      width: 80,
      search: true,
      html:true,
      formatter:(val) => {
        if(val.result==='Pass'){
          return '<b style="color:green">'+val.result+'<b/>'
        }else {
          return '<b style="color:red">'+val.result+'<b/>'
        }
      }
    },
	  {
      "type": "input",
      "label": "温度",
      "prop": "temperature",
      "span": 12,
      hide: true
    },
	  {
      "type": "input",
      "label": "湿度",
      "prop": "humidity",
      "span": 12,
      hide: true
    },
	  {
      "type": "input",
      "label": "目录名",
      "prop": "pathName",
      "span": 12,
      hide: true
    },
	  {
      "type": "input",
      "label": "文件名",
      "prop": "fileName",
      "span": 12,
      hide: true
    },
    {
      label: '时间',
      prop: 'sysTime',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      search: true,
      searchType:"datetimerange",
      startPlaceholder: '日期开始范围自定义',
      endPlaceholder: '日期结束范围自定义',
    },
  ]
}


export const realtimetableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn:true,
  // menu: false,
  menuWidth: 80,
  labelWidth: 120,
  "column": [
    {
      label: '系统时间',
      prop: 'sysTime',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      // search: true,
      searchType:"datetimerange",
      startPlaceholder: '日期开始范围自定义',
      endPlaceholder: '日期结束范围自定义',
    },
    {
      "type": "input",
      "label": "工单号",
      "prop": "docNo",
      "span": 12,
      search: true
    },
    {
      "type": "input",
      "label": "产品编号",
      "prop": "sn",
      "span": 12,
      search: true
    },
    {
      "type": "input",
      "label": "描述",
      "prop": "profile",
      "span": 12,
      hide: true
    },
    {
      "type": "input",
      "label": "仪器",
      "prop": "instrument",
      "span": 12,
      hide: true
    },
    {
      "type": "input",
      "label": "设备通道",
      "prop": "channel",
      "span": 12,
      hide: true
    },
    {
      "type": "input",
      "label": "插损_1310",
      "prop": "il1310Det1",
      "span": 12,
      width: 80,
    },
    {
      "type": "input",
      "label": "插损_1550",
      "prop": "il1550Det1",
      "span": 12,
      width: 80,
    },
    {
      "type": "input",
      "label": "回损_1310",
      "prop": "rla1310Det1",
      "span": 12,
      width: 80,
    },
    {
      "type": "input",
      "label": "回损_1550",
      "prop": "rla1550Det1",
      "span": 12,
      width: 80,
    },

    {
      "type": "input",
      "label": "端",
      "prop": "side",
      "span": 12,
      width: 60,
      // search: true
    },
    {
      "type": "input",
      "label": "分支编号",
      "prop": "nhanh",
      "span": 12,
      width: 80,
    },
    {
      "type": "input",
      "label": "连接器类别",
      "prop": "loai",
      "span": 12,
      width: 90,
    },
    {
      "type": "input",
      "label": "连接头编号",
      "prop": "stt",
      "span": 12,
      width: 100,
    },
    {
      "type": "input",
      "label": "Status",
      "prop": "result",
      "span": 12,
      width: 80,
      // search: true,
      html:true,
      formatter:(val) => {
        if(val.result==='Pass'){
          return '<b style="color:green">'+val.result+'<b/>'
        }else {
          return '<b style="color:red">'+val.result+'<b/>'
        }
      }
    },
    {
      "type": "input",
      "label": "设备编号",
      "prop": "deviceSn",
      "span": 12,
      search: true
    },
    {
      "type": "input",
      "label": "温度",
      "prop": "temperature",
      "span": 12,
      hide: true
    },
    {
      "type": "input",
      "label": "湿度",
      "prop": "humidity",
      "span": 12,
      hide: true
    },
    {
      "type": "input",
      "label": "目录名",
      "prop": "pathName",
      "span": 12,
      hide: true
    },
    {
      "type": "input",
      "label": "文件名",
      "prop": "fileName",
      "span": 12,
      hide: true
    }
  ]
}
